#include <stdio.h>
int main()
{
    int num, n1, n10, n100;
    scanf("%d", &num);
    n100 = num/100;
    n10  = (num-n100*100)/10;
    n1   = (num - n100*100 -n10*10);
    printf("%d %d %d", n1, n10, n100);
}
// 整数除自动保留整数